%select__menu-item--selected {
  color: $primary-color;
  background-color: #f3f3f3;
}

.br-select {
  position: relative;
  width: 100%;
  // 边框
  &__controller {
    width: 100%;
    height: $md-input-height;
    line-height: $md-input-height;
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    display: block;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
  }

//复写tag样式
  &__tag {
      border: none;
      height: 20px;
      line-height: 20px;
      background-color: #f3f3f3;
      margin-right: 8px;
      padding: 2px;
      margin-top:4px;
  }

  // 字体
  &__value {
    width: calc(100% - 30px);
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    padding: 0px 8px;
    color: $text-color;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  &__value-content {
    vertical-align: middle;
  }

  //图标
  &__indicator {
    position: relative;
    float: right;
    text-align: center;
    width: 30px;
    height: 28px;
    line-height: 28px;
    color: $icon-gray-color;
    text-align: center;

    & .icon {
      position: relative;
      right: 8px;
      font-size: 14px;
      color: $icon-gray-color;
      float: right;
    }
  }

  // 菜单栏
  &__menu {
    position: absolute;
    width: 100%;
    margin-top: 4px;
    border: 1px solid #cccccc;
    background: white;
    z-index: 1000;
  }

  // 搜索框
  &__search-box {
    padding: 10px;
    input {
      border-radius: 3px;
    }
  }

  // 菜单列表
  &__menu-list {
    position: relative;
    max-height: 240px;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;

    &--scroll {
      margin-right:6px;
    }

    //滚动条样式（只适用于chrome浏览器）
    &::-webkit-scrollbar { /*滚动条整体样式*/
      width: 10px;
      border-radius: 5px;
      padding-right: 6px;
    }
    &::-webkit-scrollbar-track { /*滚动条里面轨道*/
      background-color: #f1f1f1;
      border-radius: 5px;
    }
    &::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
      background: #d2d2d2;
      border-radius: 5px;
    }
  }

  // 菜单条目
  &__menu-item {
    padding: 5px 18px;
    margin: 0;
    line-height: 16px;
    text-align: -webkit-match-parent;
    color: $text-color;
    list-style: none;
    white-space: normal;
    display: list-item;
    cursor: pointer;
    transition: background-color .3s cubic-bezier(.175,.885,.32,1);


    &--selected {
      @extend %select__menu-item--selected;
    }

    &:hover {
      @extend %select__menu-item--selected;
    }

    &--disabled {
      color: $text-help-color;
      background-color: $disabled-background-color;
      pointer-events: none;
    }
  }

  // 尺寸为large时
  &--large &__indicator {
    height: 34px;
    line-height: 34px;
    & .icon {
      font-size: 16px;
    }
  }

  &--large &__value {
    height: 34px;
    line-height: 34px;
  }
    &--large &__controller {
    height: $lg-input-height;
    line-height: $lg-input-height;
  }

  &--large &__tag {
    margin-top:7px;
  }

  // 尺寸为small时
  &--small &__value {
    height: 24px;
    line-height: 24px;
  }

  &--small &__indicator {
    height: 24px;
    line-height: 24px;
    & .icon {
      font-size: 12px;
    }
  }

  &--small &__controller {
    height: $sm-input-height;
    line-height: $sm-input-height;
  }

  &--small &__tag{
    margin-top:2px;
  }

  // 尺寸为disabled时
  &--disabled &__value {
    color: $text-help-color;
  }
  &--disabled &__indicator {
    color: $text-help-color;
    & .icon {
      color: $text-help-color;
    }
  }
  &--disabled &__controller {
    border-color: $disabled-border-color;
    background-color: $disabled-background-color;
    pointer-events: none;
  }
}
